// 居民相关请求：

import { httpDelete, httpGet, httpPost, httpPut } from "@/utils/http";

// 修改 居民信息
export const updateResidentApi = (data: object) => httpPut('/residents/update', data);

// 获取 一个居民详情
export const getResidentDetailApi = (data: object) => httpGet('/residents/detail', data);

// 获取 所有居民数据
export const searchResidentsApi = (data?: object) => httpPost('/residents/search', data);

// 添加 一个居民
export const addResidentApi = (data: object) => httpPost('/residents/add', data);

// 删除 一个居民
export const deleteResidentApi = (data: object) => httpDelete('/residents/remove', data);